package com.ias.agdis_r.terminalmanager.restful.findluggage.vo;

import java.util.List;

/**
 * Created by zhangshaobo on 2018/6/11.
 */
public class LuggageMessageVO {

    private String messageId;                   // 消息号
    private String receptionTime ;              // 接受时间
    private String receptionFgosMessage;        // FGOS接收短语
    private List<String> responseTemplateList;  // 消息回复模板
    private List<LuggageVO> luggages;        // 行李号列表(key-行李号，value-行李翻减状态（无翻减0/翻减1）)

    public String getMessageId() {
        return messageId != null ? messageId : "";
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getReceptionTime() {
        return receptionTime != null ? receptionTime : "";
    }

    public void setReceptionTime(String receptionTime) {
        this.receptionTime = receptionTime;
    }

    public String getReceptionFgosMessage() {
        return receptionFgosMessage;
    }

    public void setReceptionFgosMessage(String receptionFgosMessage) {
        this.receptionFgosMessage = receptionFgosMessage;
    }

    public List<String> getResponseTemplateList() {
        return responseTemplateList;
    }

    public void setResponseTemplateList(List<String> responseTemplateList) {
        this.responseTemplateList = responseTemplateList;
    }

    public List<LuggageVO> getLuggages() {
        return luggages;
    }

    public void setLuggages(List<LuggageVO> luggages) {
        this.luggages = luggages;
    }

    @Override
    public int hashCode() {
        return this.getMessageId().hashCode();
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof LuggageMessageVO) {
            return getMessageId().equals(((LuggageMessageVO) o).getMessageId());
        }
        return super.equals(o);
    }
}


